package com.example.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloud
 * @description: 服务提供者
 * @author: ChenZhiXiang
 * @create: 2019-06-03 10:37
 **/
@RestController
public class ServiceHiController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/hi")
    public String home(){
        return "hi i am server client,i am from port:" + port;
    }
}
